﻿@{
    Layout = null;
}
 <div class="container">
<div class="navbar navbar-inverse bs-docs-nav">



       
            <div class="nav-collapse collapse">

                <ul class="nav">
                   
                </ul>

                <ul class="nav navbar-nav pull-right">
                    @if (Request.IsAuthenticated)
                    {

                       
                         <li><a href="/posts/@ViewBag.UserId">@User.Identity.Name</a></li>

                        <li><a href="/cart">cart</a></li>
                       
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">my ...<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li class=""><a href="/Customer/Info">Info</a></li>
                                <li class=""><a href="/Customer/Logo">Logo</a></li>
                              @*  <li class=""><a href="/order/index">orders</a></li>*@
                                 @if (ViewBag.IsAdmin)
                        {
                        <li><a href="/admin/Product/List">Administration</a></li>
                        }
                        else if (ViewBag.IsShopOwner)
                        {
            
                        <li><a href="/admin/Product/List">Administration</a></li>
                        }

                            </ul>
                        </li>
                        <li><a href="/customer/signoff">Log off</a></li>

        
        
                    }
                    else
                    {
                        <li>@Html.ActionLink("Register", "Register", "Customer", routeValues: new { area = "" }, htmlAttributes: new { id = "registerLink" })</li>
                        <li>@Html.ActionLink("Log in", "Login", "Customer", routeValues: new { area = "" }, htmlAttributes: new { area = "", id = "loginLink" })</li>
                    }
                </ul>

            </div>

        </div>


</div>


